package com.sxj.corejava.code07_面向对象.多态;

/**
 * @author 石小俊
 * @date 2025年01月07日
 */
public class Pet {
    private String name;
    private String gender;

    public void show() {
        System.out.println("这是一只宠物,姓名:" + name + ",性别:" + gender);
    }

    public Pet() {
    }

    public Pet(String name, String gender) {
        this.name = name;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
